package com.ruoyi.thread.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

// 商品实体
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product {
    private Long id;
    private String name;
    private String category;
    private BigDecimal price;
    private Integer stock;
    private String description;
    private ProductStatus status;
    private LocalDateTime createTime;
    
    public enum ProductStatus {
        ON_SALE, OFF_SALE, SOLD_OUT
    }
}